const setToken = function(obj) {
    localStorage.setItem('hmtt-tok', JSON.stringify(obj))
}

const getToken = function() {
    return JSON.parse(localStorage.getItem('hmtt-tok'))
}

const removeToken = function() {
    localStorage.removeItem('hmtt-tok')
}

export { setToken, getToken, removeToken }